<template>
    <div>
        <button @click="goPayment">去支付</button>
    </div>
</template>

<script setup>
import { ref } from "vue";
import axios from "@/utils/axios";
let goPayment = ()=>{
    axios(
        {
            url:"/api/payment",
            method:"post",
            headers:{
                'content-type':'application/x-www-form-urlencoded'
            }
        }
    ).then(res=>{
        console.log(res);
    })
    
}
</script>

<style>

</style>